//
//  LBCCategoryViewController.m
//  LifeEnjoy
//
//  Created by 刘表聪 on 15/9/9.
//  Copyright (c) 2015年 lanou3g. All rights reserved.
//

#import "LBCCategoryViewController.h"

@interface LBCCategoryViewController () <UITableViewDelegate, UITableViewDataSource>


@property (strong, nonatomic) IBOutlet UITableView *categoryTableView;
@property (strong, nonatomic) IBOutlet UIButton *button;


@end

@implementation LBCCategoryViewController

static NSString *cellIdentifier = @"categoryCellIdentifier";


- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = kRandomColor;
    
    // 设置分割线边距
//    self.categoryTableView.separatorInset = UIEdgeInsetsMake(0, 0, 0, 0);
    [self.categoryTableView registerClass:[UITableViewCell class] forCellReuseIdentifier:cellIdentifier];
}

#pragma mark 设置视图
- (void)viewDidLayoutSubviews
{
    [super viewDidLayoutSubviews];
    self.categoryTableView.width = kScreenWidth * 0.25;
    
 


}



#pragma mark - UITableViewDataSource
- (NSInteger)numberOfSectionsInTableView:(UITableView *)tableView
{
    return 1;
}

- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return 15;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
    UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:cellIdentifier];
    cell.textLabel.text = @"sdfa";
    return cell;
}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
